Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

256
Visualizações
How do we make text bold from .ts file to show in [innterText] html section

Just like we use \n instead of
to see the line break changes in the interface, how do we bold the specific text? What can be the alternative solution apart from using [innerHTML]?

for example: .ts file

string = This is a STRING bold testing.\n Thankyou!; // here I want to word STRING to be bold

.html file

<h2 [innerText]="string"></h2>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You have to use a custom Pipe for making bold for a particular string. Please find the below URL for your reference.

apply bold text on part of string Angular

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda